<?php
 
/**
 * FlowPedia Plugin for Mediawiki
 * 
 * Documentation at http://code.google.com/p/flowpedia/
 * 
 * Extension Maintainer:
 *	* Michael Schräber
 */

if (!defined('MEDIAWIKI')) die();

$wgFlowPediaVersion = '0.1.2';

$wgExtensionCredits['parserhook'][]    = array(
	'version'        => $wgFlowPediaVersion,
	'name'           => 'FlowPedia Plugin for MediaWiki',
	'author'         => 'Michael Schräber',
	'email'          => 'schrae at tu-chemnitz dot eu',
	'url'            => 'http://code.google.com/p/flowpedia/',
	'description'    => 'This plugin integrates statusNet Microblogging into MediaWiki',
	'descriptionmsg' => 'flowpedia-desc',
);

function FlowPediaHook( &$out, &$sk )
{
   global $wgScriptPath;
   
   $out->addScript('<script type="text/javascript" src="'.$wgScriptPath.'/extenstions/FlowPedia/flowpedia_config.js?v'.$wgFlowPediaVersion.'"></script>');
   $out->addScript('<script type="text/javascript" src="'.$wgScriptPath.'/extenstions/FlowPedia/flowpedia_main.js?v'.$wgFlowPediaVersion.'"></script>');
   $out->addStyle($wgScriptPath.'/extenstions/FlowPedia/flowpedia.css?v'.$wgFlowPediaVersion);
   
   return true;
}

$wgHooks['BeforePageDisplay'][] = 'FlowPediaHook';

?>
